import request from '@/utils/request'

// 查询出库订单详情列表
export function listDispatchInfo(query) {
  return request({
    url: '/system/dispatchInfo/list',
    method: 'get',
    params: query
  })
}

// 查询出库订单详情详细
export function getDispatchInfo(id) {
  return request({
    url: '/system/dispatchInfo/' + id,
    method: 'get'
  })
}

// 新增出库订单详情
export function addDispatchInfo(data) {
  return request({
    url: '/system/dispatchInfo',
    method: 'post',
    data: data
  })
}

// 修改出库订单详情
export function updateDispatchInfo(data) {
  return request({
    url: '/system/dispatchInfo',
    method: 'put',
    data: data
  })
}

// 删除出库订单详情
export function delDispatchInfo(id) {
  return request({
    url: '/system/dispatchInfo/' + id,
    method: 'delete'
  })
}
